import request from '@/utils/request'

// 查询收费桥梁统计列表
export function listTollBridgeStat(query) {
  return request({
    url: '/function/TollBridgeStat/list',
    method: 'get',
    params: query
  })
}

// 查询收费桥梁统计详细
export function getTollBridgeStat(id) {
  return request({
    url: '/function/TollBridgeStat/' + id,
    method: 'get'
  })
}

// 新增收费桥梁统计
export function addTollBridgeStat(data) {
  return request({
    url: '/function/TollBridgeStat',
    method: 'post',
    data: data
  })
}

// 修改收费桥梁统计
export function updateTollBridgeStat(data) {
  return request({
    url: '/function/TollBridgeStat',
    method: 'put',
    data: data
  })
}

// 删除收费桥梁统计
export function delTollBridgeStat(id) {
  return request({
    url: '/function/TollBridgeStat/' + id,
    method: 'delete'
  })
}

// 导出收费桥梁统计
export function exportTollBridgeStat(query) {
  return request({
    url: '/function/TollBridgeStat/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}
